package com.weiyi.controller.biz;

import com.weiyi.biz.domain.HelmetLog;
import com.weiyi.biz.dto.EquipInfo;
import com.weiyi.biz.dto.WarnCot;
import com.weiyi.biz.dto.WyLogInfo;
import com.weiyi.biz.mapper.WyManageMapper;
import com.weiyi.biz.service.IHelmetLogService;
import com.weiyi.common.core.controller.BaseController;
import com.weiyi.common.core.page.TableDataInfo;
import com.weiyi.controller.biz.dto.EquipTree;
import com.weiyi.framework.util.ShiroUtils;
import com.weiyi.system.domain.SysDictData;
import com.weiyi.system.domain.SysUser;
import com.weiyi.system.service.ISysDictDataService;
import com.weiyi.system.service.ISysUserService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 首页展示
 *
 * @author gq
 * @date 2020-08-31
 */
@Controller
@RequestMapping("/biz/point")
public class HelmetController extends BaseController {
    private String prefix = "biz/point";


    @Autowired
    private IHelmetLogService helmetLogService;

    @RequiresPermissions("biz:point:view")
    @GetMapping()
    public String helmet()
    {
        return prefix + "/point";
    }


    @PostMapping("/log")
    @ResponseBody
    public List<HelmetLog> log() {
        return helmetLogService.selectHelmetLogList(null);
    }


}
